import request from '@api/request';
import { HttpUrl } from '@api/httpUrl';

// 获取当日采购的数量
export function getComprehensiveInfo() {
    return request.get<AjaxResponse['comprehensiveInfo']>(HttpUrl.getComprehensiveInfo);
}

// 获取文件分布情况
export function getFileDistribution() {
    return request.get<AjaxResponse['fileDistribution']>(HttpUrl.getFileDistribution);
}

// 获取服务器CPU信息
export function getServerCpu() {
    return request.get<AjaxResponse['serverCPU']>(HttpUrl.getServerCpu);
}

// 获取服务器内存信息
export function getServerMemory() {
    return request.get<AjaxResponse['serverMemory']>(HttpUrl.getServerMemory);
}

// 获取服务器存储信息
export function getServerStorage() {
    return request.get<AjaxResponse['serverStorage']>(HttpUrl.getServerStorage);
}
